<script type="text/javascript" src="module/mod_klaim/js/klaim_apoteker.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
		$("#minimize").click(function(){
			$("#formulir_klaim").toggle(500);
		});
	});
</script>
<div id=tiga_ba>
	<div id=tiga_baa>Edit Klaim</div>
	<div id=tiga_bab></div>
	<div class=clear></div>
</div>
<?php
//require_once '../../config/koneksi.php';
$id_klaim=$_GET['id'];
//$sql="select a.*,pn.nama as nama_penduduk from klaim a inner join  peserta p on a.id_peserta = p.id_peserta inner join penduduk pn on p.id_penduduk = pn.id_penduduk where id_klaim='".$id_klaim."'";
$sql="select a.*,pn.nama as nama_penduduk,jp.jenis_peserta,jl.jenis_layanan,pk.nama as nama_ppk,
		v.nama as nama_verifikator,sk.status_keluar,datediff(a.tgl_keluar,a.tgl_masuk) as selisih
		from klaim a inner join  peserta p on a.id_peserta = p.id_peserta 
		inner join penduduk pn on p.id_penduduk = pn.id_penduduk 
		inner join jenis_peserta jp on p.id_jenis_peserta=jp.id_jenis_peserta
		inner join jenis_layanan jl on a.id_jenis_layanan=jl.id_jenis_layanan
		inner join ppk pk on a.id_ppk=pk.id_ppk
		inner join pengguna v on a.id_verifikator=v.id_pengguna
		inner join status_keluar sk on a.id_status_keluar=sk.id_status_keluar
		where id_klaim='".$id_klaim."'";
		//echo $sql;
$qry=mysql_query($sql);
$hasil=mysql_fetch_array($qry);
?>
 <table style="margin: 10px 15px 10px 15px;">
  <tr>
    <td>Total Semua </td>
    <td><div style="font-weight:bold;" id="target_total_semua"></div></td>
  </tr>
  <tr>
    <td>Ditanggung Semua </td>
    <td><div style="font-weight:bold;" id="target_ditanggung_semua"></div></td>
  </tr>
  <tr>
    <td>Selisih Semua </td>
    <td><div style="font-weight:bold;" id="target_selisih_semua"></div></td>
  </tr>

</table> 
<form id="form_klaim" name="form_klaim" action="utama.php?module=mod_klaim&act=update_apoteker" method="post">
<div id="formulir_klaim">
	<table style="margin: 10px 15px 10px 15px;">
		<tr>
			<td width="200">Nomer Klaim</td>
			<td>&nbsp;</td>
			<td width="220"><input name="no_klaim"  type="hidden"  id="no_klaim" value="<?php echo $hasil['id_klaim'];?>" maxlength="50"/><?php echo $hasil['id_klaim'];?></td>
			<td width="200">Jenis Layanan</td>
			<td>&nbsp;</td>
			<td><?php echo $hasil['jenis_layanan'];?></td>
		</tr>
		<tr>
			<td>Tanggal Masuk </td>
			<td>&nbsp;</td>
			<td><?php echo $hasil['tgl_masuk'];?></td>
			<td>Nama PPK</td>
			<td>&nbsp;</td>
			<td><input type="hidden" name="nama_ppk" id="nama_ppk" value="<?php echo $hasil['id_ppk'];?>" />
			<?php echo $hasil['nama_ppk'];?></td>
		</tr>
		<tr>
			<td>Tanggal Keluar </td>
			<td>&nbsp;</td>
			<td><?php echo $hasil['tgl_keluar'];?></td>
			<td>Umur</td>
			<td>&nbsp;</td>
			<td><?php echo konversi_hari($hasil['umur'])?></td>
		</tr>
		<tr>
			<td>Nomer Jaminan </td>
			<td>&nbsp;</td>
		  <td><?php echo $hasil['id_jaminan'];?></td>
			<td>Lama Rawat</td>
			<td>&nbsp;</td>
			<td><?php echo $hasil['selisih'];?> hari</td>
		</tr>
		<tr>
			<td>No Peserta </td>
			<td>&nbsp;</td>
			<td><?php echo $hasil['id_peserta'];?></td>
			<td>No. RM</td>
			<td>&nbsp;</td>
			<td><?php echo $hasil['no_rm'];?></td>
		</tr>
		<tr>
			<td>Nama Peserta </td>
			<td>&nbsp;</td>
			<td><?php echo $hasil['nama_penduduk'];?></td>
			<td>Verifikator</td>
			<td>&nbsp;</td>
			<td><?php echo $hasil['nama_verifikator'];?></td>
		</tr>
		<tr>
			<td rowspan="2">Keterangan</td>
			<td rowspan="2">&nbsp;</td>
			<td rowspan="2"><?php echo $hasil['keterangan'];?></td>
			<td>Status Keluar</td>
			<td>&nbsp;</td>
			<td><?php echo $hasil['status_keluar'];?></td>
		</tr>
		
	</table>
</div>
<div style="text-align: center;"><img src="asset/images/minimize.png" id="minimize"></div>
<div id="menu_klaim">
	<ul>
		<li id="btnObat">Obat</li>
		<li id="btnAbhp">ABHP</li>
	</ul>
</div>

<div id="obat" class="hidden"><?php require_once 'module/mod_klaim/js/obat.php';?></div>
<div id="abhp" class="hidden"><?php require_once 'module/mod_klaim/js/abhp.php';?></div>

<br />
<table width="30%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
    <td><input name="simpan" type="submit" class="button" id="simpan" value="Simpan" /></td>
  </tr>
</table>
</form>



        